<?php
$this->breadcrumbs=array(
	'Programok'=>array('index'),
	'Menedzselés',
);

$this->menu=array(
	array('label'=>'Programok','url'=>array('index')),
	array('label'=>'Új program','url'=>array('create')),
);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$.fn.yiiGridView.update('program-grid', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<h1>Manage Programs</h1>


<?php $this->widget('ext.bootstrap.widgets.BootGridView',array(
	'id'=>'program-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(        
		'nev',
		'datum',
        'address',
		array(
			'class'=>'ext.bootstrap.widgets.BootButtonColumn',
		),
	),
)); ?>
